package com.triones.biz.infra.service.ocr;
import com.aliyun.tea.*;
public class AliyunSampleServer {

    public static String ACCESSKEY_ID = "LTAI5tBP3CggNgAp65X6BZkZ";

    public static String ACCESSKEY_SECRET = "unlPU08NSSm30f2CeN9Ndk8wEOYIqk";

    /**
     * 使用AK&SK初始化账号Client
     * @return Client
     * @throws Exception
     */
    public static com.aliyun.ocr_api20210707.Client createClient() throws Exception {
        com.aliyun.teaopenapi.models.Config config = new com.aliyun.teaopenapi.models.Config()
            // 必填，您的 AccessKey ID
            .setAccessKeyId(ACCESSKEY_ID)
            // 必填，您的 AccessKey Secret
            .setAccessKeySecret(ACCESSKEY_SECRET);
        // Endpoint 请参考 https://api.aliyun.com/product/ocr-api
        config.endpoint = "ocr-api.cn-hangzhou.aliyuncs.com";
        return new com.aliyun.ocr_api20210707.Client(config);
    }
}
